<!-- toaster directive -->
<toaster-container
        toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
<!-- / toaster directive -->
<!-- 导航条  -->
<div class="bg-white bread-crumb">
    <ul class="breadcrumb b-a m-b-n-xs lter b-b wrapper-md">
        <li><a ui-sref="main"><i class="glyphicon glyphicon-home"></i> 房屋管理</a></li>
        <li><a ui-sref="main.regionManage.region.list" class="active" ng-bind="title"></a></li>
    </ul>
</div>

<!-- 加载提醒 -->
<div ng-show="loading" class="text-center m-t-md text-lg dataWarn"><i class="fa fa-spin fa-spinner"></i> 数据加载中...</div>

<!-- 内容区域 -->
<div ng-hide="loading" class="wrapper-md content houseManage">
    <!-- 数据显示 -->
    <div class="wrapper-data">
        <div class="panel panel-default">
            <!-- 头部 -->
            <div class="panel-heading clearfix">
                <div class="w-auto">
                    <form class="form-inline">
                        <div class="form-group">
                            <label for="identity">区域名称：</label>
                            <input type="text" ng-model="param.regionname" class="form-control" style="width: 180px"
                                   id="regionname" placeholder="请输入区域名称">
                        </div>
                        <div class="form-group">
                            <label for="name">区域类型：</label>
                            <input type="text" ng-model="param.regiontype" class="form-control" style="width: 180px"
                                   id="regiontype" placeholder="请选择区域类型">
                        </div>
                        <!-- <div class="form-group">
                            <label for="name">状态：</label>
                            <select class="form-control" style="width: 180px" ng-model="param.status" name="status"
                                    id="name">
                                <option value="" ng-selected="1">全部</option>
                                <option value="1">有效</option>
                                <option value="0">无效</option>
                            </select>
                        </div> -->
                        <div class="form-group">
                            <button type="submit" ng-click="search()" class="btn btn-primary new-primary"
                                    style="margin-left: 10px" ng-show="read">
                                查询
                            </button>
                        </div>
                        <div class="form-group">
                            <a ui-sref="main.regionManage.region.create" class="btn btn-primary addNew"ng-show="add"><i
                                    class="glyphicon glyphicon-plus"></i>新增</a>
                        </div>
                    </form>
                </div>
            </div>

            <!-- 数据表格 -->
            <div class="table-responsive">
                <table class="table table-striped b-t b-light text-center">
                    <thead>
                    <tr>
                        <th>区域编码</th>
                        <th>区域名称</th>
                        <th>区域类型</th>
						<th>父编码</th>
                        <!-- <th>设备状态</th> -->
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat="item in pageInfo.data">
                        <td class="v-middle">{{item.regionId}}</td>
                        <td class="v-middle">{{item.regionName}}</td>
                        <td class="v-middle">{{item.regionType}}</td>
						<td class="v-middle">{{item.parentId}}</td>
                        <!-- <td class="v-middle">
                            <span ng-if="item.status==1" class="text-success">有效</span>
                            <span ng-if="item.status==0" class="text-danger">无效</span>
                        </td> -->
                        <td class="v-middle">
                            <a ui-sref="main.regionManage.region.update({id: item.regionId})" style="color:#fb7009;" ng-show="update">
                                <!--class="fa fa-edit m-r-xs text-sm"-->
                                <i ></i>编辑</a>
                            &nbsp;
                            <button ng-click="delItem(item.regionId,item.regionName)" type="button"
                                    style="border: none;color:#fb7009 ; background-color:#f0f0f0;border-radius: 5px;background: none;" ng-show="dele">
                                <!--class="fa fa-ban m-r-xs text-sm"-->
                                <i ></i>删除
                            </button>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>

            <!-- /.table-responsive -->

            <!-- 底部分页 -->
            <span data-ng-include=" 'src/tpl/pageInfo.html' "></span>
        </div>
        <!-- /.panel -->
    </div>
    <!-- /.wrapper-data -->

</div>
<!-- /.wrapper-md -->


